<script type="text/javascript" >
    stFacebookToolboxcustom.on_submitform_new('#stFacebookToolboxForm');
    jQuery(document).ready(function(){
        jQuery('.stExtra').remove();
    });
    function toggleDiv(id, id1){
        stFacebookToolbox.loadPage('appPostcards', null, null, function(){
            toggleDiv('upload_field', 'uploadObject', 'createBucket');
        }); 
    }
</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b inner_container">
        <?php echo $functions->appPostcardMenu();?>
        <form class="stform" id="stFacebookToolboxForm" action="<?php echo admin_url('/admin.php?page=' . $config['plugin_name'] . '&action=' . $current_action) ?>" method="post" >
            <ul>
                <li>
                    <label><?php _e('Title', $config['plugin_name']); ?>:</label>
                    <div class="required">
                        <input value="<?php echo $result->title ?>" class="required" name="data[title]" id="title" type="text"/>
                    </div>
                    <br clear="both" />
                </li>
                
                <li>
                    <label><?php _e('Description', $config['plugin_name'])?>:</label>
                    <div class="">
                        <textarea class="" name="data[description]" cols="5" rows="5"
                                  id="description" tabindex="13" ><?php echo $result->description ?></textarea>
                    </div>
                    <br clear="both" />
                </li>
                
                <li>
                    <input type="submit" value="Submit"/>
                    <a onclick="stFacebookToolbox.loadPage('appPostcardsCategory')" class="button" style="border-radius: 4px; font-weight: normal">
                        Back
                    </a>
                </li>
            </ul>
            <input type="hidden" value="<?php echo $result->id ?>" id="id" name="data[id]"/>
            <input type="hidden" value="<?php echo $smt_user_id ?>" id="smt_user_id" name="data[smt_user_id]"/>
        </form>
    </div>
</div>